// components/post/index.js
Component({
  /**
   * 组件属性列表
   */
  properties: {
    res: Object
  },

  /**
   * 页面的初始数据
   */
  data: {
    flag: true
  },

  methods: {
    onTap(event) {
      console.log(event);
      const pid = event.currentTarget.dataset.id
      this.triggerEvent("posttap", {
        pid,
        test: 2
      })
    }
  },


})